//
//  NSString+HKHttpManager.m
//  HKHttpManager
//
//  Created by 胡锦涛 on 2019/5/11.
//  Copyright © 2019 StevenHu. All rights reserved.
//

#import "NSString+HKHttpManager.h"

@implementation NSString (HKHttpManager)
- (NSString *)httpManager_base64EncodedString;{
    NSData *data = [self dataUsingEncoding:NSUTF8StringEncoding];
    return [data base64EncodedStringWithOptions:0];
}

- (NSString *)httpManager_base64DecodedString{
    NSData *data = [[NSData alloc]initWithBase64EncodedString:self options:0];
    return [[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];
}

@end
